package orgs.example.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class User {
    private Integer userId;
    private String userAccount;

    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String userPassword;
    private String userName;
    @Pattern(regexp = "^('管理员'|'客户'|'员工')$")
    private String userRole;
    @Pattern(regexp = "^('待审核'|'已通过'|'未通过'|'已冻结')$")
    private String userStatus;
    private String userCompany;
    private String userTelephone;
}
